//
//  XS_BuyResultPopView.swift
//  XueDao
//
//  Created by 范东 on 2021/1/2.
//

import UIKit
import FDUIKit

protocol XS_BuyResultPopViewDelegate {
    func resultPopView(resultPopView:XS_BuyResultPopView, didClickOkBtn : UIButton)
}

class XS_BuyResultPopView: FDPopView {
    
    var delegate : XS_BuyResultPopViewDelegate?

    /*
    // Only override draw() if you perform custom drawing.
    // An empty implementation adversely affects performance during animation.
    override func draw(_ rect: CGRect) {
        // Drawing code
    }
    */
    @IBOutlet weak var titleLabel: UILabel!
    
    override func awakeFromNib() {
        super.awakeFromNib()
        frame = CGRect.init(x: (.screenWidth - 270 ) / 2, y: .screenHeight, width: 270, height: 222)
        titleLabel.numberOfLines = 2
    }
    
    @IBAction func okBtnAction(_ sender: UIButton) {
        if delegate != nil {
            delegate?.resultPopView(resultPopView: self, didClickOkBtn: sender)
        }
        hide()
    }
}
